/* NewsDataModel*/
const NewsData = require('../model/NewsData');
const NewsFile = require('../model/NewsFile');


var maxNewsId = 5;
var newsDataArray = [
  new NewsData(4, 'This is a test news headline A ', 'This is a piece of test news content.This is a piece of test news content.This is a piece of test news content.', [new NewsFile(0, '/images/ic_yunnan.png', 0, 0), new NewsFile(1, '/images/ic_student.png', 0, 1)], '4/20/2023'),
  new NewsData(3,'This is a test news headline B ', 'This is a piece of test news content.This is a piece of test news content.This is a piece of test news content.', [new NewsFile(0, '/images/ic_student.png', 0, 0), new NewsFile(1, '/images/ic_yiqing.png', 0, 1)], '4/20/2023'),
  new NewsData(2, 'This is a test news headline C ', 'This is a piece of test news content.This is a piece of test news content.This is a piece of test news content.', [new NewsFile(0, '/images/ic_yunnan.png', 0, 0), new NewsFile(1, '/images/ic_yiqing.png', 0, 1)], '4/20/2023'),
  new NewsData(1, 'This is a test news headline D', 'This is a piece of test news content.This is a piece of test news content.This is a piece of test news content.', [new NewsFile(1, '/images/ic_yiqing.png', 0, 1)], '4/20/2023'),
  new NewsData(0,'This is a test news headline E', 'This is a piece of test news content.This is a piece of test news content.This is a piece of test news content.', [new NewsFile(2, '/images/ic_yunnan.png', 0, 2)], '4/20/2023')
];

var maxFileId = 3;
var newsFileArray = [
  new NewsFile(0, '/images/ic_student.png', 0, 0),
  new NewsFile(1, '/images/ic_yiqing.png', 0, 1),
  new NewsFile(2, '/images/ic_yunnan.png', 0, 2),
];

var newsType = [
  { id: 0, name: 'All' },
  { id: 1, name: 'Domestic' },
  { id: 2, name: 'International' },
  { id: 3, name: 'Fun' },
  { id: 4, name: 'Military' },
  { id: 5, name: 'Sports' },
  { id: 6, name: 'Science' },
  { id: 7, name: 'Finance' }
];

module.exports = {
  maxNewsId,
  maxFileId,
  newsDataArray,
  newsFileArray,
  newsType
}